/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

/* $Id: draw.h 34 2007-07-13 03:17:53Z kf701.ye $ */

#ifndef _SOFT_FACTORY_DRAW_H_
#define _SOFT_FACTORY_DRAW_H_

#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

typedef struct{
	int32_t x;
	int32_t y;
	int32_t z;
} point_t;

typedef struct{
	uint8_t r;
	uint8_t g;
	uint8_t b;
	uint8_t a;
} color_t;

typedef void (*draw_dot_func)(point_t, color_t);

void draw_line(point_t p1, point_t p2, color_t color, draw_dot_func func);
void draw_polygon(uint32_t num, point_t *array, color_t color, draw_dot_func func);
void draw_triangle(point_t p1, point_t p2, point_t p3, color_t color, draw_dot_func func);
void draw_circle(point_t center, uint32_t radius, color_t color, draw_dot_func func);
void draw_parabola_x(point_t center, int32_t a, color_t color, draw_dot_func func);
void draw_parabola_y(point_t center, int32_t a, color_t color, draw_dot_func func);


#endif
